﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingCenterSystem.UserManagement
{
    public class User
    {
        #region protected members
        protected string _userID;
        protected string _username;
        protected string _password;
        protected string _email;
        protected bool _isActive;
        #endregion

        #region setters and getters
        /// <summary>
        /// Gets or sets the username
        /// </summary>
        public string Username
        {
            get { return _username; }
            set { _username = value; }
        }

        /// <summary>
        /// Gets the userid.
        /// </summary>
        public string UserID
        {
            get { return _userID; }
        }

        public string Password
        {
            get { return _password; }
        }

        public string EMail
        {
            get { return _email; }
        }

        public bool IsActive
        {
            get { return _isActive; }
        }
        #endregion

        #region constructor(s)

        public User(string userid, string username)
        {
            _userID = userid;
            _username = username;
            _password = "testt";
            _isActive = true;            
        }

        public User(string userid, string username, string email)
        {
            _userID = userid;
            _username = username;
            _password = "testt";
            _isActive = true;
            _email = email;
        }

        public User(string userid, string username, string password, string email)
        {
            _username = username;
            _userID = userid;
            _password = password;
            _isActive = true;
            _email = email;
        }

        public User(string userid, string username, string password, string email, bool isActive)
        {
            _username = username;
            _userID = userid;
            _password = password;
            _isActive = isActive;
            _email = email;
        }


        
        #endregion

        #region methods
        #endregion
    }
}
